<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>User List</title>
</head>
<body>
	<div id="user_list">
		<h1>Welcome to the User Management Application!</h1>
		<p>Your user list:</p>
		<ul>
			<?php foreach( $user_list as $user ): ?>
			<li><a href="?id=<?php echo $user->getId(); ?>"><?php echo $user->getFullName(); ?></a></li>
			<?php endforeach; ?>
		</ul>
	</div>
	<?php if( $current_user && $current_user instanceof User ): ?>
	<div id="user_profile">
		<h2>Profile for: <?php echo $current_user->getFullName(); ?></h2>
		<dl>
			<dt>ID:</dt><dd><?php echo $current_user->getId();?></dd>
			<dt>Login:</dt><dd><?php echo $current_user->getLogin();?></dd>
			<dt>First Name:</dt><dd><?php echo $current_user->getFirstName();?></dd>
			<dt>Last Name:</dt><dd><?php echo $current_user->getLastName();?></dd>
			<dt>Email:</dt><dd><?php echo $current_user->getEmail();?></dd>
		</dl>
	</div>
	<?php endif; ?>
</body>
</html>